package com.java110.intf.cart;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.storeOrder.StoreOrderCartSendDto;
import com.java110.po.storeOrder.StoreOrderCartSendPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IStoreOrderCartSendInnerServiceSMO
 * @Description 派送方式与商品关系接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-cart", configuration = {FeignConfiguration.class})
@RequestMapping("/storeOrderCartSendApi")
public interface IStoreOrderCartSendInnerServiceSMO {


    @RequestMapping(value = "/saveStoreOrderCartSend", method = RequestMethod.POST)
    public int saveStoreOrderCartSend(@RequestBody  StoreOrderCartSendPo storeOrderCartSendPo);

    @RequestMapping(value = "/updateStoreOrderCartSend", method = RequestMethod.POST)
    public int updateStoreOrderCartSend(@RequestBody  StoreOrderCartSendPo storeOrderCartSendPo);

    @RequestMapping(value = "/deleteStoreOrderCartSend", method = RequestMethod.POST)
    public int deleteStoreOrderCartSend(@RequestBody  StoreOrderCartSendPo storeOrderCartSendPo);

    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param storeOrderCartSendDto 数据对象分享
     * @return StoreOrderCartSendDto 对象数据
     */
    @RequestMapping(value = "/queryStoreOrderCartSends", method = RequestMethod.POST)
    List<StoreOrderCartSendDto> queryStoreOrderCartSends(@RequestBody StoreOrderCartSendDto storeOrderCartSendDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param storeOrderCartSendDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryStoreOrderCartSendsCount", method = RequestMethod.POST)
    int queryStoreOrderCartSendsCount(@RequestBody StoreOrderCartSendDto storeOrderCartSendDto);
}
